package com.ldzy.dao;

import com.ldzy.pojo.Product;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ProductDao {
    public  Process findById(int id);
    @Select("select p.id,p.name,p.price from ordersitem ol,product p where ol.pid=p.id and ol.oid=#{oid}")
    public List<Product> findProductByOrdersIds(int id);
}
